package org.batyrov.equery.console.control;

import javax.swing.*;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: admin
 * Date: 16.09.2009
 * Time: 22:56:10
 * To change this template use File | Settings | File Templates.
 */
public class Frame extends JFrame {
    private Panel mainPanel = new Panel();

    public Panel getMainPanel() {
        return mainPanel;
    }

    public Frame() throws HeadlessException {
        setSize(500, 500);
        setVisible(true);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JMenuBar menuBar = new JMenuBar();
        JMenu menu = new JMenu("Main");
        JMenuItem menuItem = new JMenuItem("Item");
        menu.add(menuItem);
        menuBar.add(menu);
        setJMenuBar(menuBar);
        setContentPane(mainPanel);
    }
}
